﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace E.Tool
{
    public abstract class UISlot<T> : MonoBehaviour
    {
        [Header("数据")]
        [SerializeField] private T data;

        public T Data { get => data; }

        public void SetData(T data)
        {
            this.data = data;
            Refresh();
        }
        public abstract void Refresh();

        //public virtual void OnBeginDrag()
        //{

        //}
        //public virtual void OnDrag()
        //{

        //}
        //public virtual void OnEndDrag()
        //{

        //}
        //public virtual void OnDrop()
        //{

        //}
    }
}
